<!DOCTYPE html>
<html>

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" href="__PUBLIC__/css/public.css">
    <script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/jquery.SuperSlide.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/d3.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
    <script src="http://code.jquery.com/ui/1.11.0/jquery-ui.min.js"></script>
    <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
    <link rel="stylesheet" href="http//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
    <link rel="stylesheet" href="">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/bootstrap-responsive.css" />
    <link rel="stylesheet" href="__PUBLIC__css/public.css">
    <style type="text/css" media="screen">
        body {
            padding-left: 50px;
            padding-right: 50px;
        }
    </style>
    <script type="text/javascript" charset="utf-8">
        // function showDlg(){
        //      var Overlay = BUI.Overlay
        //       var dialog = new Overlay.Dialog({
        //         title:'模态窗口',
        //         width:500,
        //         height:250,
        //         bodyContent:'<p>这是一个模态窗口,默认带有确认取消按钮</p>',
        //         success:function () {
        //           alert('确认');
        //           this.close();
        //         }
        //       });
        //     dialog.show();
        // }


        function trClick(today, channel, tag) {
            if (tag == 1) {
                showModalDialog("{:U('migu/info_',array('timeStamp'=>time()))}" + "/today/" + today + "/channel/" + channel, "上行详情", "dialogWidth:800px;dialogHeight:600px; dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes;toolbar=no");
            } else if (tag == 2) {
                showModalDialog("{:U('migu/syncInfo_',array('timeStamp'=>time()))}" + "/today/" + today + "/channel/" + channel, "上行详情", "dialogWidth:800px;dialogHeight:600px; dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes;toolbar=no");
            }

        }
    </script>
    <script type="text/javascript">
        $(function () {

            $("#datepicker-start").datepicker({
                dateFormat: 'yy-mm-dd',
                showButtonPanel: true,

            });

        })


    </script>
</head>

<body>
日期：
<form action="{:U('migu/list_')}" method="post">
    <input type="text" id="datepicker-start" name="date" value="{$date}"/>
    <input type="submit" value="查找" class="UIbutton">
</form>
<table class="table table-bordered table-hover definewidth m10">
    <thead>
    <tr>
        <th>日期</th>
        <th>渠道号</th>

        <th>成功数</th>


        <th>同步成功数</th>


    </tr>
    </thead>
    <tbody>
    <foreach name="data" item="vo">
        <tr>
            <td>{$vo.today}</td>
            <td>{$vo.channel}</td>


            <td onclick="trClick('{$vo.today}','{$vo.channel}','1')"> {$vo.success_count}</td>
            <td onclick="trClick('{$vo.today}','{$vo.channel}','2')">{$vo.sync_count}</td>


        </tr>
    </foreach>
    </tbody>
</table>

</body>

</html>
